<!--<%@page isELIgnored="false" pageEncoding="UTF-8" contentType="text/html; UTF-8" %>-->
<%--<!DOCTYPE html>--%>
<html>
<head>
	<meta charset="utf-8">
	<title>后台登录</title>
	<link rel="stylesheet" href="layui/css/layui.css">
	<link rel="stylesheet" href="css/main.css" media="all">
	<link rel="stylesheet" href="css/plugins/font-awesome-4.7.0/css/font-awesome.min.css" media="all">
</head>

<body class="layui-layout-login">
<div class="login-bg">
	<div class="cover"></div>
</div>
<div class="login-content" >
	<h1 class="login-box-title"><i class="fa fa-fw fa-user"></i>登录</h1>
	<form class="layui-form" action="./admin/login" method="post">

		<div class="layui-form-item">
			<label class="layui-icon layui-icon-username" for="name"></label>
			<input class="layui-input" type="text" name="name" id="name" placeholder="用户名">
		</div>

		<div class="layui-form-item">
			<label class="layui-icon layui-icon-password" for="pwd"></label>
			<input class="layui-input" type="password" name="pwd" id="pwd" placeholder="密码">
		</div>

		<div class="layui-form-item captcha-item">
			<label class="layui-icon layui-icon-vercode"></label>
			<input class="layui-input" type="text" name="code" autocomplete="off" placeholder="验证码">

			<div class="item-input">
				<img id="captcha_img" alt="点击更换" title="点击更换"
					 onclick="refresh()" src="./admin/captcha" />
			</div>
		</div>

		<button type="submit" class="layui-btn layui-btn-fluid ajax-login"><i class="fa fa-sign-in fa-lg fa-fw"></i> 登录</button>
	</form>
</div>
</body>
<script src="layui/layui.js" type="text/javascript"></script>

<script type="text/javascript">
	function refresh() {
		document.getElementById('captcha_img').src="./admin/captcha?"+Math.random();
	}
</script>
</html>
